package com.ccsoft.staticproxy;

import com.ccsoft.service.Sell;

/**
 * 静态代理 - 代理类
 */
public class StaticProxy implements Sell {
    private Sell sell;

    public StaticProxy(Sell sell) {
        this.sell = sell;
    }

    @Override
    public void sell() {
        sell.sell();
    }

    @Override
    public void add() {
        sell.add();
    }
}
